#include "../include/stu.h"

void delete_s(){
    system("clear");
    printf("输入要删除的学生学号\n");
    char id[15];
    scanf("%s",id);
    struct student *p1,*p2;
    p1 = head1;
    p2 = p1;
    while(p1 != NULL){
        if (strcmp(p1->id,id)==0){
                if(p1 == head1)
                    head1 = head1->next;
                else
                    p2->next = p1->next;
            return ;
        }
        p2 = p1;
        p1 = p1->next;
    }
    printf("不存在\n");
}
